<template>
  <div>
    <van-tabbar route>
      <van-tabbar-item replace to="/home">
        <span>首页</span>
        <template #icon="props">
          <i class="iconfont icon-home"></i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item replace to="/category">
        <span>分类</span>
        <template #icon="props">
          <i class="iconfont icon-tabulation"></i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item replace to="/cart">
        <span>购物车</span>
        <template #icon="props">
          <i class="iconfont icon-cart"></i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item replace to="/user">
        <span>我的</span>
        <template #icon="props">
          <i class="iconfont icon-mine"></i>
        </template>
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script setup>
  import { ref } from "vue"
  const active = ref(0)
</script>

<style scoped lang="less">
  .van-tabbar {
    .van-tabbar-item {
      font-size: 14px;
      line-height: 1;
    }
    .van-tabbar-item--active {
      color: #00a6a4;
    }
  }
</style>
